package Problem;

import java.time.LocalDate;
import java.util.Scanner;

//
// Created by ✎﹏ℳ๓独赏☆独醉 on 2024/1/25.
// 
public class 天数 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int year = 2021;
        int month = scan.nextInt();
        LocalDate localDate = LocalDate.of(year,month,1);
        int day = localDate.lengthOfMonth();
        System.out.println(day);
    }
}
